<template>
    <div>
        <div class="title">{{title}}</div>
        <div class="summary" v-html="contentHtml"></div>
    </div>
</template>
<script>
// import { getBookDetail } from "@/utils/api";
export default {
    data() {
        return{
            title: '',
            contentHtml: ''
        }
    },
    mounted() {
        this.title = this.$route.query.title
        this.contentHtml = sessionStorage.contentHtml
        // const data = {
        //     mid: this.$router.currentRoute.query.fid,
        //     uid: this.$router.currentRoute.query.uid,
        // }
        // getBookDetail({data}).then((res) => {
        //     // if(res.data)
        //     this.title = res.data.result.title
        //     this.summary = res.data.result.mindDetailPlayVo && res.data.result.mindDetailPlayVo.contentHtml
        //     console.log(res.data.result)
        // })
    }
    
}
</script>
<style lang="scss" scoped>
.title{
    font-size: 0.36rem;
    font-weight: 600;
    font-family: PingFang-SC-Bold;
    color:#0A0A0A;
    line-height: 0.36rem;
    text-align: center;
    padding: 0.40rem 0.3rem 0;
}
.summary{
    font-size: 0.32rem;
    padding: 0.3rem 0.3rem 0;
    font-family: PingFang-SC;
    color:#282828;
    line-height: 0.5rem;
}
</style>

